/* 
数组的解构
*/
let arr=[10,20,30];
// 1.数组的全部解构
let [a,b,c]=arr;
console.log(a,b,c);//10,20,30

// 2.数组的部分解构
let [,bb,]=arr;
console.log(bb);//20

// 3.复合解构
let arr2 = [1, 2, [10, 20, 30]];
let [ j, k, [x, y, z]] = arr2;
console.log(j);  //1
console.log(k);  //2
console.log(x);  //10
console.log(y);  //20
console.log(z);  //30
